<cfcontent type="text/plain" />
<cfsetting enableCFOutputOnly="true" />

<!--- Force no caching, because IE is not so bright about it --->
<cfheader name="expires" value="#now()#"> 
<cfheader name="pragma" value="no-cache"> 
<cfheader name="cache-control" value="no-cache, no-store, must-revalidate">

<cfif !isdefined("URL.badgenum")>
	<cfoutput>Undefined</cfoutput>
	<cfabort />	
</cfif>

<cfinclude template="/code_lib/SCF_Employee.cfm" />
<cfset employee = SCF_Employee_GetEmployee(SCF_Employee_GetRosettaID_fromBadgeNum(URL.badgenum)) />

<cfif employee.RosettaID eq 0>
	<cfoutput>Badge number not found</cfoutput>
<cfelse>
	<cfoutput>#Trim(employee.FirstName)# #Trim(employee.LastName)#</cfoutput>
</cfif>